<template>
<section @click="clickCurrent('current')" @mousedown="clickCurrent('dragging')">
    <div :class="['custorm--modelbox', 'graphicimgs-show', (custormCurrent == custormIndex)?'drag active':'drag']">
        <div v-if="custormItemData.params.isshow == '2'" class="noshow" v-bind:style="{'background-image':`url(${getPath('noshow.png')})`}"></div>
        <div>
            <div class="es-picture" style="overflow: hidden;" v-bind:style="{'background':`${custormItemData.style.bgcolor}`}">
                <img v-for="(item, index) in custormItemData.data" :key="index" v-bind:style="{'margin':`${custormItemData.style.margincol}px 0`,'padding':`0 ${custormItemData.style.marginrow}px`}" :src="getPath(item.thumb && item.thumb.file_path ? item.thumb.file_path : 'default_banner.png')" draggable="false">
            </div>
            <div class="btn-edit-del" @click="delCurrent"><span class="btn-del iconfont icon icon-close"></span></div>
        </div>
    </div>
</section>
</template>

<script>
import defaultConfig from './utils/showConfig'
export default {
  mixins: [defaultConfig.mixins],
  props: {
    defaultConfig: {
      type: Object,
      default: function() {
        return defaultConfig
      }
    }
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.custorm--modelbox.graphicimgs-show {
    .es-picture img {
        width: 100%;
        display: block;
    }
}
</style>
